package Enum;

import lombok.Getter;

@Getter
public enum AirTicketType {
     FIRST_CLASS(1, "头等舱",10000),
    BUSINESS_CLASS(2, "商务舱",7000),
    ECONOMY_CLASS(3, "经济舱",5000);
    final int typeCode;
    final String typeName;
    final double airTicketPrice;
    //枚举类的构造器默认是私有的，枚举类不能创建对象
    private AirTicketType(int typeCode, String typeName, double airTicketPrice) {
        this.typeCode = typeCode;
        this.typeName = typeName;
        this.airTicketPrice = airTicketPrice;
    }

}
